package com.mes.cloud.entity;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * 系统操作日志表
 * 
 * @author Mr.zhang
 * @email zhangchao4@shinho.net.cn
 * @version 2019-07-30 10:46:17
 */
@Data
@Table(name = "sys_log")
public class SysLog implements Serializable {
    private static final long serialVersionUID=1L;
   /**
    * 主键
    */
	@Id
	private String id;
   /**
    * 用户ID
    */
	@Column(name = "employee_id")
	private String employeeId;
   /**
    * 员工编号
    */
	@Column(name = "employee_name")
	private String employeeName;
   /**
    * 员工姓名
    */
	@Column(name = "real_name")
	private String realName;
   /**
    * 模块
    */
	@Column(name = "module")
	private String module;
   /**
    * 操作
    */
	@Column(name = "operate")
	private String operate;
   /**
    * 类型
    */
	@Column(name = "type")
	private String type;
   /**
    * 字段
    */
	@Column(name = "field")
	private String field;
   /**
    * 旧值
    */
	@Column(name = "old_value")
	private String oldValue;
   /**
    * 新值
    */
	@Column(name = "new_value")
	private String newValue;
   /**
    * IP地址
    */
	@Column(name = "ip")
	private String ip;
   /**
    * 请求参数
    */
	@Column(name = "request_params")
	private String requestParams;
   /**
    * 方法执行时间(毫秒值)
    */
	@Column(name = "cost_time")
	private Long costTime;
   /**
    * 状态(0：禁用，1：启用)
    */
	@Column(name = "enable_flag")
	private String enableFlag;
	/**
	 *创建人
	 */
	@Column(name = "create_by")
	private String createBy;
	/**
	 * 创建时间
	 */
	@Column(name = "create_time")
	private Date createTime;
	/**
	 * 修改人
	 */
	@Column(name = "update_by")
	private String updateBy;
	/**
	 * 修改时间
	 */
	@Column(name = "update_time")
	private Date updateTime;
	/**
	 * 删除标记，1：删除，0：未删除
	 */
	@Column(name = "del_flag")
	private String delFlag;
	/**
	 * 更新日期(8位 20190720)
	 */
	@Column(name = "update_date_str")
	private String updateDateStr;
	/**
	 * 版本
	 */
	@Column(name = "version")
	private Integer version;

	@Column(name = "create_by_no")
	private String createByNo;

	@Column(name = "update_by_no")
	private String updateByNo;
}
